<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <title>用户中心</title>
    <link href="/Public/bootstrap-3.3.5-dist/css/bootstrap.min.css" title="" rel="stylesheet" />
    <link title="" href="/Public/css/style.css" rel="stylesheet" type="text/css"  />
    <link title="blue" href="/Public/css/dermadefault.css" rel="stylesheet" type="text/css"/>
    <link title="green" href="/Public/css/dermagreen.css" rel="stylesheet" type="text/css" disabled="disabled"/>
    <link title="orange" href="/Public/css/dermaorange.css" rel="stylesheet" type="text/css" disabled="disabled"/>
    <link href="/Public/css/templatecss.css" rel="stylesheet" title="" type="text/css" />
    <script src="/Public/script/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/Public/script/jquery.cookie.js" type="text/javascript"></script>
    <script src="/Public/bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/Public/ueditor/ueditor.all.min.js"></script>

    <link href="/Public/datetime/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="/Public/datetime/moment-with-locales.js"></script>
    <script type="text/javascript" src="/Public/datetime/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="/Public/datetime/bootstrap-datetimepicker.zh-CN.js"></script>
    <!--<script src="/Public/js/jquery-1.8.2.min.js"></script>-->

    <!--引用select2-->
    <link href="/Public/datetime/select2.min.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="/Public/datetime/select2.full.min.js"></script>
    <!--分页样式-->
    <style type="text/css">
        .page-404 {
            background: #fff;
            border: none;
            width: 200px;
            margin: 0 auto;
        }
        .prev,.next{
            font-size: 12px;
            line-height: 24px;
        }
        .prev,.current,.num,.next{
            display: block;
            width: 44px;
            height: 37px;
            border: 1px solid #ddd;
            text-align: center;
            padding: 5px 10px;
            float: left;
            margin: 0 5px;
        }
        .prev:hover,.num:hover,.next:hover{
            background-color: #ddd;
        }
        .current{
            background-color: #36b1ef;
            color: white;
            border: 1px solid #36b1ef;
        }
        .show_page{
            float: right;
        }
    </style>
</head>

<body>
<nav class="nav navbar-default navbar-mystyle navbar-fixed-top">
    <div class="navbar-header">
        <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand mystyle-brand" href="<?php echo U('index/index');?>"><span class="glyphicon glyphicon-home"></span></a> </div>
    <div class="collapse navbar-collapse">

        <ul class="nav navbar-nav pull-right">


            <li class="dropdown li-border"><a href="#" class="dropdown-toggle mystyle-color" data-toggle="dropdown"><?php echo $adminifo['stf_name']; ?><span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="<?php echo U('index/out');?>">退出</a></li>
                </ul>
            </li>
            <li class="dropdown"><a href="#" class="dropdown-toggle mystyle-color" data-toggle="dropdown">换肤<span class="caret"></span></a>
                <ul class="dropdown-menu changecolor">
                    <li id="blue"><a href="#">蓝色</a></li>
                    <li class="divider"></li>
                    <li id="green"><a href="#">绿色</a></li>
                    <li class="divider"></li>
                    <li id="orange"><a href="#">橙色</a></li>
                </ul>
            </li>
        </ul>
    </div>
</nav>
<div class="down-main">
    <div class="left-main left-full">
        <div class="sidebar-fold"><span class="glyphicon glyphicon-menu-hamburger"></span></div>
        <div class="subNavBox">
            <div class="sBox">
                <?php foreach($menutop as $m){?>
                <?php if($m['pmid']==0){?>
                <div class="subNav subNav sublist-up"><span class="title-icon glyphicon glyphicon-chevron-up"></span><span class="sublist-title"><?php echo $m['name'];?></span>
                </div>
                <ul class="navContent" style="display:none">
                    <li>
                        <?php foreach($menutop as $m2){?>
                        <?php if($m2['pmid']==$m['mid']){?>
                        <!--<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" /><?php echo $m2['name'];?></div>-->
                        <a href="<?php echo U($m2['controll'].'/'.$m2['view']);?>"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title"><?php echo $m2['name'];?></span></a>
                        <?php }}?>
                    </li>
                </ul>
                <?php }}?>
            </div>
        </div>
    </div>
    <div class="right-product my-index right-full">
        <div class="container-fluid">
            <div class="info-center">
<div style="margin-left: 30%;color: #2b542c">
    <h2>即时入职，面试通知</h2>
</div>
<br><br><br>
<div class="col-xs-12 col-sm-6 col-md-8">
    <form class="form-horizontal" method="post">
        <div class="form-group">
            <label for="inputEmail4" class="col-sm-2 control-label">选择面试人：</label>
            <div class="col-sm-10">
                <div class="col-sm-10">
                    <select  class="form-control" name="rmn_men">
                        <option>请选择：</option>
                        <?php if(is_array($rest)): foreach($rest as $key=>$rst): ?><option value="<?php echo ($rst["rmn_id"]); ?>"><?php echo ($rst["preson"]); ?></option><?php endforeach; endif; ?>
                    </select>
                </div>
           </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">面试时间：</label>
            <div class="col-sm-10">
                <input type="datetime-local" name="itw_time" class="form-control" id="inputPassword3" placeholder="time">
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail1" class="col-sm-2 control-label">面试地点：</label>
            <div class="col-sm-10">
                <select class="form-control" name="itw_adress">
                    <option>请选择：</option>
                    <option>重庆足下软件学院</option>
                    <option>大学城站南环路231号</option>
                    <option>西永政府斜对面即时上班</option>
                </select>
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">面试岗位：</label>
            <div class="col-sm-10">
                <input type="text" name="itw_post"  value="<?php echo ($rst["rmd_intention"]); ?>" class="form-control" id="inputEmail4" placeholder="">
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">面试官：</label>
            <div class="col-sm-10">
                <select class="form-control"name="stf_id" >
                    <option>请选择：</option>
                    <?php if(is_array($sta)): foreach($sta as $key=>$st): ?><option value="<?php echo ($st["pt_id"]); ?>"><?php echo ($st["pt_name"]); ?></option><?php endforeach; endif; ?>
                </select>
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">面试情况：</label>
            <div class="col-sm-10">
                <label class="radio-inline">
                    <input type="radio"  name="status" id="inlineRadio1" value="1"> 进行中
                </label>
                <label class="radio-inline">
                    <input type="radio" checked="checked" name="status" id="inlineRadio2" value="0"> 已完成
                </label>
            </div>
        </div>
        <br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">状态：</label>
            <div class="col-sm-10">
                <label class="radio-inline">
                    <input type="radio" checked="checked"  name="states" id="inlineRadio3" value="1"> 启用
                </label>
                <label class="radio-inline">
                    <input type="radio" name="states" id="inlineRadio4" value="0"> 未启用
                </label>
            </div>
        </div>
        <br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">简历ID：</label>
            <div class="col-sm-10">
                <input type="text" name="rmn_id" value="<?php echo ($rst['rmn_id']); ?>" class="form-control" id="inputEmail9" placeholder="">
            </div>
        </div>
        <br>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" name="submit" value="1">
                <button type="submit" class="btn btn-default">通知面试</button>
              <a class="btn btn-default" href="<?php echo U('index');?>">返回上一页</a>
            </div>
        </div>
    </form>
</div>
<script>
    $('select[name="rmn_men"]').change(function () {
        var rmn_id=$(this).val();
        $.get('<?php echo U("Interviewinfo/submit_api");?>?rmn_id='+rmn_id,function (data) {
            console.log(data);
            $('input[name="itw_post"]').val(data['rmd_intention']);
            $('input[name="rmn_id"]').val(data['rmn_id']);
        });
    })
</script>
</div>
</div>
</div>
</div>
<script type="text/javascript">
    $(function(){
        /*换肤*/
        $(".dropdown .changecolor li").click(function(){
            var style = $(this).attr("id");
            $("link[title!='']").attr("disabled","disabled");
            $("link[title='"+style+"']").removeAttr("disabled");

            $.cookie('mystyle', style, { expires: 7 }); // 存储一个带7天期限的 cookie
        })
        var cookie_style = $.cookie("mystyle");
        if(cookie_style!=null){
            $("link[title!='']").attr("disabled","disabled");
            $("link[title='"+cookie_style+"']").removeAttr("disabled");
        }
        /*左侧导航栏显示隐藏功能*/
        $(".subNav").click(function(){
            /*显示*/
            if($(this).find("span:first-child").attr('class')=="title-icon glyphicon glyphicon-chevron-down")
            {
                $(this).find("span:first-child").removeClass("glyphicon-chevron-down");
                $(this).find("span:first-child").addClass("glyphicon-chevron-up");
                $(this).removeClass("sublist-down");
                $(this).addClass("sublist-up");
            }
            /*隐藏*/
            else
            {
                $(this).find("span:first-child").removeClass("glyphicon-chevron-up");
                $(this).find("span:first-child").addClass("glyphicon-chevron-down");
                $(this).removeClass("sublist-up");
                $(this).addClass("sublist-down");
            }
            // 修改数字控制速度， slideUp(500)控制卷起速度
            $(this).next(".navContent").slideToggle(300).siblings(".navContent").slideUp(300);
        })
        /*左侧导航栏缩进功能*/
        $(".left-main .sidebar-fold").click(function(){

            if($(this).parent().attr('class')=="left-main left-full")
            {
                $(this).parent().removeClass("left-full");
                $(this).parent().addClass("left-off");

                $(this).parent().parent().find(".right-product").removeClass("right-full");
                $(this).parent().parent().find(".right-product").addClass("right-off");

            }
            else
            {
                $(this).parent().removeClass("left-off");
                $(this).parent().addClass("left-full");

                $(this).parent().parent().find(".right-product").removeClass("right-off");
                $(this).parent().parent().find(".right-product").addClass("right-full");

            }
        })

        /*左侧鼠标移入提示功能*/
        $(".sBox ul li").mouseenter(function(){
            if($(this).find("span:last-child").css("display")=="none")
            {$(this).find("div").show();}
        }).mouseleave(function(){$(this).find("div").hide();})
    })
</script>

<script type="text/javascript" src="/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
    UE.getEditor('rct_content',{    //content为要编辑的textarea的id
        initialFrameWidth: 1120,   //初始化宽度
        initialFrameHeight: 200,   //初始化高度
    });
</script>

</body>
</html>